Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use an ordered_map to store the TopicMap. #250

Merged
merged 3 commits into from
Aug 2, 2024
Merged

Conversation

clalancette
Copy link
Collaborator

Some of the tests in ROS 2 assume that the order in which entities (pub, sub, clients, services) are added to the system is the same order in which they will be returned from calls like get_topic_names_and_types(). To facilitate that, use an ordered_map for the mapping between a topic name and the topic type, which remembers insertion order.

Some of the tests in ROS 2 assume that the order in which
entities (pub, sub, clients, services) are added to the system
is the same order in which they will be returned from
calls like get_topic_names_and_types().  To facilitate that,
use an ordered_map for the mapping between a topic name and
the topic type, which remembers insertion order.

Signed-off-by: Chris Lalancette <[email protected]>
@clalancette clalancette requested a review from Yadunund July 25, 2024 17:39
Copy link
Member

@Yadunund Yadunund left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me!

.github/workflows/style.yaml Show resolved Hide resolved
rmw_zenoh_cpp/src/detail/graph_cache.hpp Show resolved Hide resolved
Signed-off-by: Chris Lalancette <[email protected]>
@Yadunund Yadunund merged commit c12ff3e into rolling Aug 2, 2024
8 checks passed
@Yadunund Yadunund deleted the clalancette/ordered-map branch August 2, 2024 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants